package dnl.dtools.grm.remote;

import ajul.lang.Args;
import dnl.dtools.grm.security.PasswordRegistry;

public class RemoteSession {
	protected UserPasswordRemoteSessionInfo sessionInfo;
	protected boolean connected;
	protected PasswordRegistry passwordManager;

	public RemoteSession(UserPasswordRemoteSessionInfo sessionInfo) {
		Args.assertNotNull(sessionInfo);
		this.sessionInfo = sessionInfo;
	}

	public void setPasswordManager(PasswordRegistry passwordManager) {
		this.passwordManager = passwordManager;
	}

	public UserPasswordRemoteSessionInfo getSessionInfo() {
		return sessionInfo;
	}

	public boolean isConnected() {
		return connected;
	}

	protected void setConnected(boolean connected) {
		this.connected = connected;
	}
}
